package com.xian.historyDistines.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.xian.historyDistines.mapper.THistoricalDynastiesMapper;
import com.xian.historyDistines.domain.THistoricalDynasties;
import com.xian.historyDistines.service.ITHistoricalDynastiesService;

/**
 * 朝代简介Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-04
 */
@Service
public class THistoricalDynastiesServiceImpl implements ITHistoricalDynastiesService 
{
    @Autowired
    private THistoricalDynastiesMapper tHistoricalDynastiesMapper;

    /**
     * 查询朝代简介
     * 
     * @param id 朝代简介主键
     * @return 朝代简介
     */
    @Override
    public THistoricalDynasties selectTHistoricalDynastiesById(Long id)
    {
        return tHistoricalDynastiesMapper.selectTHistoricalDynastiesById(id);
    }

    /**
     * 查询朝代简介列表
     * 
     * @param tHistoricalDynasties 朝代简介
     * @return 朝代简介
     */
    @Override
    public List<THistoricalDynasties> selectTHistoricalDynastiesList(THistoricalDynasties tHistoricalDynasties)
    {
        return tHistoricalDynastiesMapper.selectTHistoricalDynastiesList(tHistoricalDynasties);
    }

    /**
     * 新增朝代简介
     * 
     * @param tHistoricalDynasties 朝代简介
     * @return 结果
     */
    @Override
    public int insertTHistoricalDynasties(THistoricalDynasties tHistoricalDynasties)
    {
        return tHistoricalDynastiesMapper.insertTHistoricalDynasties(tHistoricalDynasties);
    }

    /**
     * 修改朝代简介
     * 
     * @param tHistoricalDynasties 朝代简介
     * @return 结果
     */
    @Override
    public int updateTHistoricalDynasties(THistoricalDynasties tHistoricalDynasties)
    {
        return tHistoricalDynastiesMapper.updateTHistoricalDynasties(tHistoricalDynasties);
    }

    /**
     * 批量删除朝代简介
     * 
     * @param ids 需要删除的朝代简介主键
     * @return 结果
     */
    @Override
    public int deleteTHistoricalDynastiesByIds(Long[] ids)
    {
        return tHistoricalDynastiesMapper.deleteTHistoricalDynastiesByIds(ids);
    }

    /**
     * 删除朝代简介信息
     * 
     * @param id 朝代简介主键
     * @return 结果
     */
    @Override
    public int deleteTHistoricalDynastiesById(Long id)
    {
        return tHistoricalDynastiesMapper.deleteTHistoricalDynastiesById(id);
    }
}
